<?php
include "./base.php";
$id=$_GET["id"];
$sql="select * from userinfo where uid=${id};";
$res = mysql_query($sql);
$row = mysql_fetch_assoc($res);
print_r(json_encode($row));
?>